<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>02-for循环练习</title>
</head
>
<body>
  <script>
    //1.输出1~100岁
    // for (let i = 0; i < 100; i++) {
    //   document.write(`我今年${i}岁了<br>`)
    // }
    //2.


    //3.打印5个小星星
    // for (let i = 1; i <= 5; i++) {
    //   document.write('☆')
    // }

    //4.打印数组
    let arr = ['刘备','关羽','张飞','诸葛亮']
    for (let i = 0; i < arr.length; i++) {
      console.log(arr[i]);   
    }
  </script>
</body>
</html>